#pragma once
#include <string>
#include <Windows.h>

using namespace std;

class GuiHandler;

class Client
{
	SOCKET mySocket;
	sockaddr_in serverAddress;
	string name;
	GuiHandler* gui;

	bool SendData( char* );
	bool RecvData( char*, int );
	bool ConnectToServer( const char *ipAddress, int port );
	void log(string);
public:
	Client(string,const char*, int);
	~Client(void);	
	bool SendData( string );
	void start();
	string getName();
};

